home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / wdiff004.lha / wdiff-0.04 / cbars.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1992-11-23  |  322b  |  14 lines

  1. #!/bin/sh
  2. # Produce change bars from two revisions of a document.
  3. # Copyright (C) 1992 Free Software Foundation, Inc.
  4. # Francois Pinard <pinard@iro.umontreal.ca>, 1992.
  5.  
  6. usage="$0 OLD_FILE NEW_FILE"
  7.  
  8. if [ $# -ne 2 ]; then
  9.   echo "$usage"; exit
  10. fi
  11.  
  12. <bindir>/wdiff -1n $1 $2 |
  13.   sed -e 's/^/  /;/{+/s/^ /|/;s/{+//g;s/+}//g'
  14.